package com.chenzehe.zdmya.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.chenzehe.zdmya.dao.ContentTypeDao;
import com.chenzehe.zdmya.domain.ContentType;

@Service
@Transactional
public class ContentTypeService extends BaseService implements
		IContentTypeService {
	@Resource
	ContentTypeDao typeDao;

	@Override
	public ContentType getTypeByEname(String ename) {
		ContentType type = typeDao.findUniqueBy("ename", ename);
		if (type != null) {
			return type;
		}
		return null;
	}

}
